package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.AgentiaCategory;
import com.zhijian.medical.entity.vo.request.AgentiaCategorySearchVo;
import com.zhijian.medical.entity.vo.response.AgentiaCategoryVo;

import java.util.List;

public interface AgentiaCategoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AgentiaCategory record);

    int insertSelective(AgentiaCategory record);

    AgentiaCategory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AgentiaCategory record);

    int updateByPrimaryKey(AgentiaCategory record);

    int count(AgentiaCategorySearchVo agentiaCategorySearchVo);

    List<AgentiaCategoryVo> selectList(AgentiaCategorySearchVo agentiaCategorySearchVo);

    AgentiaCategoryVo selectVoById(Long id);

    /**
     * 查询出最新数据的code
     *
     * @return
     */
    String selectMaxCode();

}